package  com.dragonwu.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragonwu.mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author DragonWu
 * @since 2022-10-06
 */
@RestController
@RequestMapping("/sys-user")
public class SysUserController {

    @Autowired
    private SysUserMapper sysUserMapper;

    @GetMapping
    public Object query(){
        return sysUserMapper.selectList(new QueryWrapper<>());
    }
}
